<template>
    <div>
        请选择组织类型 : 公司 / 部门
    </div>
</template>
<script>
export default {
  props: ["orgId"],
  data() {
    return {
      org: {}
    };
  },
  created() {
    this.getOrg();
  },
  watch: {
    orgId(curVal, oldVal) {
      console.log(curVal, oldVal);
      this.init();
    }
  },
  methods: {
    init() {
      this.org = {};
    },
    getOrg() {
      this.$http({
        url: this.$URL_ADDR.org.one,
        method: "GET"
      }).then(resp => {
        this.org = resp.data.data;
      });
    }
  }
};
</script>
